# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-concurrent-log-handler
_pyname=concurrent_log_handler
pkgver=0.9.25
pkgrel=0
arch="noarch"
pkgdesc="RotatingFileHandler replacement with concurrency, gzip and Windows support"
url="https://pypi.python.org/project/concurrent-log-handler"
license="Apache-2.0"
depends="
	py3-portalocker
	"
makedepends="
	py3-setuptools
	py3-gpep517
	py3-wheel
	py3-hatchling
	"
checkdepends="
	py3-pytest
	py3-stresstest
	"
options="!check" # Missing depend stresstest
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/c/concurrent-log-handler/concurrent_log_handler-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	PYTHONPATH="$builddir" pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
d13d51b0379a7c246958ef367f2c878f8d8b6e08f9afd3fd3e00d678ff450c615e96aed8f2d575269883da3fa53205bf27177dab69d824a53b100fcada4db339  py3-concurrent-log-handler-0.9.25.tar.gz
"
